package cm.cool.web.data;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;

import cm.cool.web.bean.News;

@Mapper
public interface NewsMapper {
    int deleteByPrimaryKey(String id);

    int insert(News record);
    
    /**添加一个新的咨讯**/
    int insertSelective(News record);
    
    /**条件查找所有**/
    List<News> selectByAll(News news);
    
    /**条件查找数量**/
    int selectByAllCount(News news);
    
    /**修改一个咨讯**/
    int updateByPrimaryKeySelective(News record);

    int updateByPrimaryKeyWithBLOBs(News record);

    int updateByPrimaryKey(News record);
}